"use strict";

//导包
const express = require('express')
const path = require('path')
//创建路由
const accountRouter = express.Router()

//导入控制器
const accountCtrl = require(path.join(__dirname, '../controllers/accountController.js'))

//处理路由规格
//获取登入界面的路由
accountRouter.get('/login', accountCtrl.getLoginPage)

accountRouter.post('/login', accountCtrl.login)

// 导出
module.exports = accountRouter